package com.example.demo.entity.vo;


import com.example.demo.entity.Userinfo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 *  用户视图对象
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class UserinfoVO extends Userinfo implements Serializable {
    private Integer artCount; // 发表的文章总数
    private Integer draftCount; // 发表的草稿数量.
    private String nickname; // 用户昵称
    private Integer collectCount; // 收藏的文章数目.

    @Override
    public String toString() {
        return "UserinfoVO{" +
                "artCount=" + artCount +
                ", draftCount=" + draftCount +
                ", nickname='" + nickname + '\'' +
                "} " + super.toString();
    }
}
